package com.longshihan.carservice.service.goods;

import com.github.pagehelper.PageInfo;
import com.longshihan.carservice.model.GoodsDomain;

public interface GoodsService {

    int addGoodsBean(GoodsDomain goodsDomain);

    int addGoods(String goodsId,String goodsName,String des,
                 String authorId,String type,String status,
                 double price, double originprice,
                 String province,String goodsImage,String tags,
                 String categories);


    int deleteGoodsById(String goodsId);

    int updateGoodsBean(GoodsDomain goodsDomain);

    int updateGoods(String authorId,String goodsId,String goodsName,String des,
                    String type,String status,
                    double price, double originprice,
                    String province,String goodsImage,String tags,
                    String categories);

    PageInfo<GoodsDomain> getAuthorGoods(String authorId,int pageNum, int pageSize);
    PageInfo<GoodsDomain> getGoods(int pageNum, int pageSize);
    GoodsDomain getGoodsById(String goodsId,String authorId);
}
